<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/auth/templates/template.xhtml">
	<ui:define name="pageTitle">Alterar Dados Despesa</ui:define>
	<ui:define name="body">
		<f:view>

			<f:metadata>
				<f:viewParam name="despesa" value="#{despesaRSBean.despesa}" />
			</f:metadata>

			<p:growl id="messages" autoUpdate="true" closable="true"
				showDetail="true" />

			<h:form>
				<h:panelGrid cellspacing="10px" styleClass="center">
					<f:facet name="header">Alterar Dados de Despesa</f:facet>
					<p:focus context="dados" />
					<h:outputText value="Dados da Despesa" styleClass="header3" />
					<h:panelGrid id="dados" columns="2" cellspacing="10px">
						<p:outputLabel value="Descrição" />
						<p:inputText value="#{despesaRSBean.despesa.descricao}" />
						<p:outputLabel value="Valor" />
						<p:inputText value="#{despesaRSBean.despesa.valor}">
							<f:convertNumber minFractionDigits="2" type="number" />
						</p:inputText>
						<p:outputLabel value="Dia de Vencimento" />
						<p:inputText value="#{despesaRSBean.despesa.diaVencimento}" />
					</h:panelGrid>
					<p:commandButton action="#{despesaRSBean.alterar}" value="Enviar"
						update="@form" icon="ui-icon-check" />
				</h:panelGrid>
			</h:form>
		</f:view>
	</ui:define>
</ui:composition>

</html>
